//
//  FormatableDatePicker.h
//  Rich
//
//  Created by Kenny Chen on 13/9/1.
//  Copyright (c) 2013年 Kenny Chen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DateHelper.h"

typedef enum {
    FormatableDatePickerComponentNone = 0x0,
    FormatableDatePickerComponentDay = 0x1,
    FormatableDatePickerComponentMonth = 0x2,
    FormatableDatePickerComponentYear = 0x4,
} FormatableDatePickerComponent;

@interface FormatableDatePicker : UIPickerView <UIPickerViewDataSource, UIPickerViewDelegate>
{
    NSDateFormatter *   dateFormater;
    NSDateComponents *  dateComponents;
    FormatableDatePickerComponent dateComponentOrder[3];
    UIFont *            font;
    NSInteger           monthComponentSize;
}

@property (nonatomic, copy) NSDate *date;
@property (nonatomic, copy) NSTimeZone *timeZone;
@property (nonatomic, retain) NSString *dateFormat;
@property (nonatomic, assign) NSUInteger maximumYear;
@property (nonatomic, assign) NSUInteger minimumYear;

@end
